package com.pan.entity;

import java.util.Arrays;

public class UMLInformation {

    private String className;
    private String[] fields;
    private String[] methods;
    private String[] constructors;

    private int xSize;
    private int ySize;

    public int getXSize() {
        return xSize;
    }

    public void setXSize(int xSize) {
        this.xSize = xSize;
    }

    public int getYSize() {
        return ySize;
    }

    public void setYSize(int ySize) {
        this.ySize = ySize;
    }

    public UMLInformation() {
    }

    public UMLInformation(String className, String[] fields, String[] methods, String[] constructors) {
        this.className = className;
        this.fields = fields;
        this.methods = methods;
        this.constructors = constructors;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public void setFields(String[] fields) {
        this.fields = fields;
    }

    public void setMethods(String[] methods) {
        this.methods = methods;
    }

    public void setConstructors(String[] constructors) {
        this.constructors = constructors;
    }

    public String getClassName() {
        return className;
    }

    public String[] getFields() {
        return fields;
    }

    public String[] getMethods() {
        return methods;
    }

    public String[] getConstructors() {
        return constructors;
    }

    @Override
    public String toString() {
        return "UMLInformation{" +
                "className='" + className + '\'' +
                ", fields=" + Arrays.toString(fields) +
                ", methods=" + Arrays.toString(methods) +
                ", constructors=" + Arrays.toString(constructors) +
                ", xSize=" + xSize +
                ", ySize=" + ySize +
                '}';
    }
}
